import request from "@/utils/request";
import cfg from "@/config/config";

const personnelFile = {
  //人员列表
  getUserList: param => {
    return request("post", cfg.apiUrl + "/api/user/getUserList", param);
  },

  //添加人员
  addUserInfo: param => {
    return request("post", cfg.apiUrl + "/api/user/addUserInfo", param);
  },

  //修改人员
  updateUserInfo: param => {
    return request("post", cfg.apiUrl + "/api/user/updateUserInfo", param);
  },

  //离职人员
  quitUserInfo: param => {
    return request("post", cfg.apiUrl + "/api/user/quitUserInfo", param);
  },
  //锁定假期天数
  sockVacation: param => {
    return request("post", cfg.apiUrl + "/api/user/sockVacation", param);
  },
  //清零
  clearingZero: param => {
    return request("post", cfg.apiUrl + "/api/user/clearingZero", param);
  },
  //获取编号.
  getUserSerial: param => {
    return request("post", cfg.apiUrl + "/api/user/getUserSerial", param);
  },
  //获取账户类型.
  getacTypeList: param => {
    return request("post", cfg.apiUrl + "/api/user/getacTypeList", param);
  },
  getNationList: param => {
    return request("post", cfg.apiUrl + "/api/user/getNationList", param);
  },
  getNativeList: param => {
    return request("post", cfg.apiUrl + "/api/user/getNativeList", param);
  },
  getUserType: param => {
    return request("post", cfg.apiUrl + "/api/user/getUserType", param);
  },
  addLoanInfo: param => {
    return request("post", cfg.apiUrl + "/api/user/addLoanInfo", param);
  },
  getkqdkLxList: param => {
    return request("post", cfg.apiUrl + "/api/user/getkqdkLxList", param);
  },
  getjcLxList: param => {
    return request("post", cfg.apiUrl + "/api/user/getjcLxList", param);
  },
  getManualUserList: param => {
    return request("post", cfg.apiUrl + "/api/user/getManualUserList", param);
  },
  manualSynUserInfo: param => {
    return request("post", cfg.apiUrl + "/api/user/manualSynUserInfo", param);
  },
  transferPerson: param => {
    return request("post", cfg.apiUrl + "/api/user/transferPerson", param);
  },
  findBdKqWorkCalendarList: param => {
    return request(
      "get",
      cfg.apiUrl + "/api/user/findBdKqWorkCalendarList",
      param
    );
  },
  //根据部门修改人员工作日历
  setUserCalendar: param => {
    return request("post", cfg.apiUrl + "/api/user/setUserCalendar", param);
  }
};

export default personnelFile;
